<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title></title>
    <link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
    <link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>

<body>
    <div style="margin:0 auto;padding:20px;">
        <form class="layui-form" action="" id="showForm" autocomplete="off">
            <div class="layui-form-item layui-col-xs12">
                <label class="layui-form-label">所属学校<i class="red">*</i></label>
                <div class="layui-input-block">
                    <select id="schoolId" lay-filter="schoolId" lay-search="" win-verify="required">
                    </select>
                </div>
            </div>
            <div class="layui-form-item layui-col-xs6">
                <label class="layui-form-label">所属院系<i class="red">*</i></label>
                <div class="layui-input-block">
                    <select id="facultyId" lay-filter="facultyId" lay-search="" win-verify="required">
                        <option value="">请选择</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item layui-col-xs6">
                <label class="layui-form-label">所属专业<i class="red">*</i></label>
                <div class="layui-input-block">
                    <select id="majorId" lay-filter="majorId" lay-search="" win-verify="required">
                        <option value="">请选择</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item layui-col-xs6">
                <label class="layui-form-label">所属科目<i class="red">*</i></label>
                <div class="layui-input-block">
                    <select id="subjectId" lay-filter="subjectId" lay-search="" win-verify="required">
                        <option value="">请选择</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item layui-col-xs6">
                <label class="layui-form-label">类型<i class="red">*</i></label>
                <div class="layui-input-block winui-radio">
                    <input type="radio" name="isPublic" value="0" title="公开" />
                    <input type="radio" name="isPublic" value="1" title="私有" checked="checked" />
                </div>
            </div>
            <div class="layui-form-item layui-col-xs6">
                <label class="layui-form-label">分数<i class="red">*</i></label>
                <div class="layui-input-block">
                    <input type="text" id="fraction" name="fraction" win-verify="required|number" placeholder="请输入分数"
                        class="layui-input" />
                </div>
            </div>
            <div class="layui-form-item layui-col-xs12">
                <label class="layui-form-label">知识点</label>
                <div class="layui-input-block">
                    <button type="button" class="layui-btn layui-btn-primary layui-btn-xs"
                        id="schoolKnowledgeChoose">知识点选择</button>
                </div>
            </div>
            <div class="layui-form-item layui-col-xs12">
                <label class="layui-form-label">问题信息<i class="red">*</i></label>
                <div class="layui-input-block">
                    <div class="dwQuTypeModel">
                        <div class="surveyQuItemBody quDragBody" style="width: 100%;">

                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item layui-col-xs12">
                <div class="layui-input-block">
                    <button class="winui-btn" id="cancle">
                        <language showName="com.skyeye.cancel"></language>
                    </button>
                    <button class="winui-btn" lay-submit lay-filter="formAddBean">
                        <language showName="com.skyeye.save"></language>
                    </button>
                </div>
            </div>
        </form>

        <!-- 编辑框 -->
        <div id="dwCommonEditRoot">
            <div class="dwCommonEdit">
                <ul class="dwComEditOptionUl">
                    <li class="dwOptionDel">
                        <div class=dwQuIcon></div>
                    </li>
                </ul>
                <div id="dwComEditContent" contenteditable="true"></div>
            </div>
        </div>

        <script type="text/x-handlebars-template" id="template">
			{{#bean}}
				<div class="initLine"></div>
				<!-- 题目基础信息 -->
				<div class="quInputCase" style="display: none;">
					<input type="hidden" name="quType" value="FILLBLANK">
					<input type="hidden" name="quId" value="{{id}}">
					<input type="hidden" name="hv" value="{{hv}}">
					<input type="hidden" name="randOrder" value="{{randOrder}}">
					<input type="hidden" name="cellCount" value="{{cellCount}}">
					<input type="hidden" name="checkType" value="0">
					<input type="hidden" name="answerInputWidth" value="300">
					<input type="hidden" name="answerInputRow" value="1">
					<input type="hidden" name="contactsAttr" value="0">
					<input type="hidden" name="contactsField" value="0">
				</div>
				<div class="surveyQuItem">
					<div class="surveyQuItemContent" style="width: calc(100% - 20px);">
						<div class="quCoTitle">
							<div class="editAble quCoTitleEdit">{{quTitle}}</div>
						</div>
						<div class="layui-tab layui-tab-brief" lay-filter="question-insert-type">
          					<ul class="layui-tab-title">
            					<li class="layui-this">默认</li>
            					<li class=""><img src="../../assets/images/icon/icon-vedio.png" class="layui-title-icon"/>插入视频</li>
								<li class=""><img src="../../assets/images/icon/icon-audio.png" class="layui-title-icon"/>插入音频</li>
            					<li class=""><img src="../../assets/images/icon/icon-picture.png" class="layui-title-icon"/>插入图片</li>
          					</ul>
          					<div class="layui-tab-content">
            					<div class="layui-tab-item layui-show">不插入任何内容</div>
            					<div class="layui-tab-item">
		        					<div class="upload questionVedio"></div>
								</div>
								<div class="layui-tab-item">
									<div class="upload questionAudio"></div>
								</div>
            					<div class="layui-tab-item">
									<div class="upload questionPicture"></div>
								</div>
          					</div>
        				</div>
						<div class="quCoItem">
							<ul>
								<li class="quCoItemUlLi">
									<div class="quFillblankItem">
										<input type="text" style="width:200px;padding:5px;" class="quFillblankAnswerInput" value="{{isDefaultAnswer}}"/>
										<div class="dwFbMenuBtn" ></div>
									</div>
								</li>
							</ul>
						</div>
						<fieldset class="layui-elem-field site-demo-button">
							<legend>是否允许拍照/上传图片</legend>
  							<div>
    							<div class="layui-input-block winui-radio">
            						<input type="radio" name="whetherUpload" value="1" title="是" lay-filter="whetherUpload"/>
            						<input type="radio" name="whetherUpload" value="2" title="否" lay-filter="whetherUpload"/>
        						</div>
  							</div>
						</fieldset>
					</div>
				</div>
			{{/bean}}
		</script>

        <script type="text/x-handlebars-template" id="noDataTemplate">
			<div class="initLine"></div>
				<div class="quInputCase" style="display: none;">
					<input type="hidden" name="quType" value="FILLBLANK">
					<input type="hidden" name="quId" value="">
					<input type="hidden" name="hv" value="2">
					<input type="hidden" name="randOrder" value="0">
					<input type="hidden" name="cellCount" value="0">
					<input type="hidden" name="checkType" value="0">
					<input type="hidden" name="answerInputWidth" value="300">
					<input type="hidden" name="answerInputRow" value="1">
					<input type="hidden" name="contactsAttr" value="0">
					<input type="hidden" name="contactsField" value="0">
				</div>
				<div class="surveyQuItem">
					<div class="surveyQuItemContent" style="width: calc(100% - 20px);">
						<div class="quCoTitle">
							<div class="editAble quCoTitleEdit" >题标题？</div>
						</div>
						<div class="layui-tab layui-tab-brief" lay-filter="question-insert-type">
          					<ul class="layui-tab-title">
            					<li class="layui-this">默认</li>
            					<li class=""><img src="../../assets/images/icon/icon-vedio.png" class="layui-title-icon"/>插入视频</li>
								<li class=""><img src="../../assets/images/icon/icon-audio.png" class="layui-title-icon"/>插入音频</li>
            					<li class=""><img src="../../assets/images/icon/icon-picture.png" class="layui-title-icon"/>插入图片</li>
          					</ul>
          					<div class="layui-tab-content">
            					<div class="layui-tab-item layui-show">不插入任何内容</div>
            					<div class="layui-tab-item">
		        					<div class="upload questionVedio"></div>
								</div>
								<div class="layui-tab-item">
									<div class="upload questionAudio"></div>
								</div>
            					<div class="layui-tab-item">
									<div class="upload questionPicture"></div>
								</div>
          					</div>
        				</div>
						<div class="quCoItem">
							<ul>
								<li class="quCoItemUlLi">
									<div class="quFillblankItem">
										<input type="text" style="width:200px;padding:5px;" class="quFillblankAnswerInput" />
										<div class="dwFbMenuBtn" ></div>
									</div>
								</li>
							</ul>
						</div>
						<fieldset class="layui-elem-field site-demo-button">
							<legend>是否允许拍照/上传图片</legend>
  							<div>
    							<div class="layui-input-block winui-radio">
            						<input type="radio" name="whetherUpload" value="1" title="是" lay-filter="whetherUpload"/>
            						<input type="radio" name="whetherUpload" value="2" title="否" lay-filter="whetherUpload" checked="true"/>
        						</div>
  							</div>
						</fieldset>
					</div>
				</div>
		</script>

    </div>
    <script src="../../assets/lib/layui/layui.js"></script>
    <script src="../../assets/lib/layui/custom.js"></script>
    <script src="../../js/schoolQuestionBank/common/common.js"></script>
    <script type="text/javascript">
        layui.config({ base: '../../js/schoolQuestionBank/' }).use('fillblankAdd');
    </script>
</body>

</html>